﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
    private void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Ext.Net.MenuItem node;
            node = new Ext.Net.MenuItem { Text = "Thêm cán bộ", Href = "/VienKhoaHoc/ThemCanBo" };
            MainMenu.Menu.Add(node);
        }
    }
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    DanhMucCanBo
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%--<ext:Store runat="server" ID="storeList" AutoLoad="true">
        <Proxy>
            <ext:HttpProxy Url="/CanBo/GetByIDs" />
        </Proxy>
        <Reader>
            <ext:JsonReader Root="data">
                <Fields>
                    <ext:RecordField Name="ID" />
                    <ext:RecordField Name="MaCB" />
                    <ext:RecordField Name="HoTen" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:DataView ID="DataView1" runat="server" StoreID="storeList" ItemSelector="rowtpl">
        <Template ID="Template1" runat="server">
            <Html>
                <tpl for=".">
                    <div class="rowtpl">
                        <p><a href="/CanBo/Details?ID={ID}"><b>{HoTen}</b></a></p>
                    </div>
                </tpl>
            </Html>
        </Template>
    </ext:DataView>--%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
    <style type="text/css">
        .rowtpl
        {
            width: 45%;
            height: 100px;
            border-bottom-width: 1px;
            border-bottom-color: Black;
            border-bottom-style: solid;
            border-left-width: 1px;
            border-left-color: Black;
            border-left-style: solid;
            padding: 0px 0px 0px 10px;
        }
        .rowtpl a
        {
            color: Blue;
            font: 14px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MenuContent" runat="server">
    <ext:MenuPanel runat="server" ID="MainMenu" Header="false" Border="false" />
</asp:Content>
